﻿<UserControl x:Class="CPPEI.Coolzon.UI.Design.DesignBorder"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300">
    <Canvas Name="_ctlCanvas">
        <Border BorderThickness="1" BorderBrush="Green" Width="100" Height="100" Canvas.Left="200" Canvas.Top="200" Visibility="Hidden"/>
        <Grid Name="_ctlBorder">
            <Grid.RowDefinitions>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="auto"/>
            </Grid.RowDefinitions>
            <Grid Grid.Row="0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="auto"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="auto"/>
                </Grid.ColumnDefinitions>
                <Border Name="_ctlPartLeftTop" Grid.Column="0" Width="5" Height="5" Background="Black" Cursor="SizeNWSE" MouseDown="_ctlPartLeftTop_MouseDown_1"/>
                <Border Name="_ctlPartTop" Grid.Column="1" Width="5" Height="5" Background="Black" Cursor="SizeNS" MouseDown="_ctlPartLeftTop_MouseDown_1"/>
                <Border Name="_ctlPartRightTop" Grid.Column="2" Width="5" Height="5" Background="Black" Cursor="SizeNESW" MouseDown="_ctlPartLeftTop_MouseDown_1"/>
            </Grid>
            <Grid Grid.Row="1">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="auto"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="auto"/>
                </Grid.ColumnDefinitions>
                <Border Name="_ctlPartLeft" Grid.Column="0" Width="5" Height="5" Background="Black" Cursor="SizeWE" MouseDown="_ctlPartLeftTop_MouseDown_1"/>
                <Border Name="_ctlPartCenter" Grid.Column="1" Background="#22000000" BorderBrush="Black" BorderThickness="1" MouseDown="_ctlPartLeftTop_MouseDown_1" Width="100" Height="50">
                    <Button Name="_ctlBtnEnter" Content="Enter" HorizontalAlignment="Right" VerticalAlignment="Top" Click="_ctlBtnEnter_Click" />
                </Border>
                <Border Name="_ctlPartRight" Grid.Column="2" Width="5" Height="5" Background="Black" Cursor="SizeWE" MouseDown="_ctlPartLeftTop_MouseDown_1"/>
            </Grid>
            <Grid Grid.Row="2">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="auto"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="auto"/>
                </Grid.ColumnDefinitions>
                <Border Name="_ctlPartLeftBottom" Grid.Column="0" Width="5" Height="5" Background="Black" Cursor="SizeNESW" MouseDown="_ctlPartLeftTop_MouseDown_1"/>
                <Border Name="_ctlPartBottom" Grid.Column="1" Width="5" Height="5" Background="Black" Cursor="SizeNS" MouseDown="_ctlPartLeftTop_MouseDown_1"/>
                <Border Name="_ctlPartRightBottom" Grid.Column="2" Width="5" Height="5" Background="Black" Cursor="SizeNWSE" MouseDown="_ctlPartLeftTop_MouseDown_1"/>
            </Grid>
        </Grid>
    </Canvas>
</UserControl>
